package com.naiterui.ehp.bs.doctor.prodocl;

import java.io.Serializable;

import com.naiterui.ehp.bp.support.exception.JsonException;
import com.naiterui.ehp.bp.support.utils.JsonMapper;

/**
 * 公共对外包装类
 *
 * @author fanjd
 * @since 1.0.0
 */
public class CommonNotice implements Serializable {

    /**
     * 字段或域定义：<code>serialVersionUID</code>
     */
    private static final long serialVersionUID = -5886231862465223377L;

    public String toJson(Object obj) {
        try {
            return JsonMapper.toJson(obj);
        } catch (JsonException e) {
            return null;
        }
    }
}
